package com.jk.dao;

import com.jk.entity.Order;
import com.jk.entity.OrderItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao {

    List<Order> GetOrderList(@Param("order")Order order, @Param("userid") String userid);

    void delOrderId(@Param("ids")String[] ids);

    List<OrderItem> getOrderItem(@Param("oid") String oid);
    //计算商品总金额
    Double selectItemsMoney();
    void addorder(@Param("order")Order order);

    void addOrderItems(@Param("item")OrderItem orderItem);

    void delOrderItem(@Param("ids")String[] ids);
}
